package com.gduf.bbl.service.impl;

import com.gduf.bbl.common.utils.PageUtils;
import com.gduf.bbl.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.gduf.bbl.dao.CashRecordDao;
import com.gduf.bbl.entity.CashRecordEntity;
import com.gduf.bbl.service.CashRecordService;


@Service("cashRecordService")
public class CashRecordServiceImpl extends ServiceImpl<CashRecordDao, CashRecordEntity> implements CashRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CashRecordEntity> page = this.page(
                new Query<CashRecordEntity>().getPage(params),
                new QueryWrapper<CashRecordEntity>()
        );

        return new PageUtils(page);
    }

}